package com.chb.sso.feign;

import com.chb.sso.factory.MyUserFallbackFactory;
import com.chb.sso.factory.PatientFeignFactory;
import com.hos.entity.his.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/19 11:24
 * @description: 患者远程调用
 * @modified By:
 * @version: 1.0
 */
@FeignClient(name = "hos-docter", fallbackFactory = PatientFeignFactory.class)
public interface PatientFeign {


    /**
     * 根据手机号查询是否有该用户
     *
     * @param phone 手机号码
     */
    @GetMapping("/docter/patient/selectPatientByPhone/{phone}")
    Patient selectPatientByPhone(@PathVariable String phone);


}
